package com.itheima.homework;

public class Friend {
    public static void main(String[] args) {
        TestFriend f = new TestFriend();
        f.setHight(165.0);
        f.setName("静香");
        f.setWeight(100);
        f.show();
        f.cook();
        f.wash();
        System.out.println("------");
        TestFriend f2 = new TestFriend("静香", 165.0, 100);
        f.show();
        f.cook();
        f.wash();

    }

}

class TestFriend {
    private String name;
    private double hight;
    private double weight;

    public TestFriend() {
    }

    public TestFriend(String name, double hight, double weight) {
        this.name = name;
        this.hight = hight;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public double getHight() {
        return hight;
    }

    public void setHight(double hight) {
        this.hight = hight;
    }

    public double getWeighe() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void cook() {
        System.out.println("女朋友帮我做饭");
    }

    public void wash() {
        System.out.println("女朋友帮我洗衣服");
    }

    public void show() {
        System.out.println("我女朋友叫" + name + "身高" + hight + "厘米," + "体重" + weight + "斤");
    }
}
